;$(function() {
  $('#side-menu').metisMenu();

  $('.datepicker').each(function () {
    var $input = jQuery(this);
    $input.datepicker({
      weekStart: 1,
      autoclose: true,
      todayHighlight: true,
      language: 'zh-CN',
    });
  });

  function resize() {
    var menuHeight = $("body > #wrapper").height() - 64;
    $(".sidebar-panel").css("min-height", menuHeight + "px");
  };

  resize();

  $(window).on("load resize scroll", function () {
    resize();
  });
});